﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Plazos
{
    public partial class FormMostrarPideSic : Form
    {
        public FormMostrarPideSic()
        {
            InitializeComponent();
        }

        private void buscar_Click(object sender, EventArgs e)
        {
            int anInteger;
            anInteger = Convert.ToInt32(textSicBuscar.Text);
            anInteger = int.Parse(textSicBuscar.Text);
            Curso cur = new Curso();
            List<Curso> cursos = cur.getCursos();
            
            foreach (Curso c in cursos)
            {
                if (c.Sic == anInteger) {
                    FormMostrarPorCurso frm = new FormMostrarPorCurso(anInteger);
                    frm.Show();
                    this.Dispose();
                }
            }
            
            
        }
    }
}
